﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    class CustodianMap : ClassMap<Custodian>
    {
        public CustodianMap()
        {
            Table("CUSTODIAN");
            Id(x => x.CustodianId, "CUSTODIAN_ID").GeneratedBy.Identity();
            Map(x => x.CustodianNameEn, "CUSTODIAN_NAME_EN");
            Map(x => x.CustodianNameTh, "CUSTODIAN_NAME_TH");
            Map(x => x.CustodianAddress, "CUSTODIAN_ADDRESS");
            Map(x => x.CustodianContact, "CUSTODIAN_CONTACT");
            Map(x => x.CustodianEmail, "CUSTODIAN_EMAIL");
            Map(x => x.CustodianTel, "CUSTODIAN_TEL");
            Map(x => x.CustodianFax, "CUSTODIAN_FAX");

        }
    }
}
